<html><head><title>LFS Serverinfo (c) 2006 Stijn Wauters</title><link rel='stylesheet' type='text/css' href='style.css'/>
<header><title>Serverinfo</title></header>
<?php

include_once ("onlinefuncties.php");

$LfsWorld = 0;
while($LfsWorldLength < 52) //blijven retryen tot de data binnenkomt... Dit kan vaak mislukken als ge geen ident key gebruikt
{
   $LfsWorld=file_get_contents("http://www.lfsworld.net/pubstat/get_stat2.php?version=1.3&&idk=plD7vYXtQ48iJNGR6j8aO2Bx9L6444Im&action=hosts");
   $LfsWorldLength = strlen ($LfsWorld);
}

$gevraagdeHost = $racefile = $_REQUEST['host'];

$Host = find_lfs_host($gevraagdeHost,$LfsWorld);

echo "<h2>" . $Host['HtmlNaam'] . "</h2>\n";
echo "<UL>";
echo "<LI><a href=\"" . $Host['JoinUrl'] . "\">Join deze server</a><br>\n";
echo "<LI>Specificatie: " . $Host['Type'] . " Versie " . $Host['Versie'] . $Host['Letter'] . "<br>\n";
echo "<LI>Deze server is " . $Host['Status'] . "<br>\n";
echo "<LI>Mogelijkheden op deze server: " . $Host['Opties'] ."<br>\n";
echo "<LI>Circuit: " . $Host['Track'] . "<br>\n";
echo "<LI>Wagen(s) : " . $Host['All Cars'] . "<br>\n";
echo "<LI>Aantal piloten aanwezig: " . $Host['nr_racers'] . "<br>\n";
echo "<UL>";
if ($Host['Piloten'] != null)
{
   foreach($Host['Piloten'] as $nr => $piloot) echo "<LI>" . $piloot . " ";
}
echo "</UL>";
echo "</UL>";
?>
</body>
</html>
